<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of addForm
 *
 * @author Admin
 */
class Application_Form_street_AddForm extends Zend_Form {

    public function __construct($options = null) {
        parent::__construct($options);

        $teamMembers = new Zend_Form_Element_Multiselect('teamMembers');
        $userModel = new Application_Model_UserModel();
        $users = $userModel->getAllDepartmentUsers('streetDigging');
        foreach ($users as $user){
            $teamMembers->addMultiOption($user['id'],$user['fname']);
        }
        
        $this->addElements(array($teamMembers));
    }
}